import request from '@/utils/request'

// 查询内部返货列表
export function listBackGoods(query) {
  return request({
    url: '/backGoods/backGoods/list',
    method: 'get',
    params: query
  })
}

// 查询内部返货详细
export function getBackGoods(id) {
  return request({
    url: '/backGoods/backGoods/' + id,
    method: 'get'
  })
}

// 新增内部返货
export function addBackGoods(data) {
  return request({
    url: '/backGoods/backGoods',
    method: 'post',
    data: data
  })
}

// 修改内部返货
export function updateBackGoods(data) {
  return request({
    url: '/backGoods/backGoods',
    method: 'put',
    data: data
  })
}

// 删除内部返货
export function delBackGoods(id) {
  return request({
    url: '/backGoods/backGoods/' + id,
    method: 'delete'
  })
}
